package kr.hkit.powerjava.chapter09.work;

class Box {
	private int width;
	private int height;
	private int length;
	private boolean empty;
	
	public Box() {
		
	}
	
	public Box(int width, int height, int length) {
		this.width = width;
		this.height = height;
		this.length = length;
		this.empty = true;
	}
	
	public void setBox(int width, int height, int length)
	{
		this.width = width;
		this.height = height;
		this.length = length;
		this.empty = true;
	}
	
	public void setEmpty(int a)
	{
		if(a == 0) {
			this.empty = true;
		} else {
			this.empty = false;
		}
		
	}
	public boolean isEmpty() {
		return this.empty;
	}

	@Override
	public String toString() {
		return "Box [width=" + width + ", height=" + height + ", length="
				+ length + ", empty=" + empty + "]";
	}
	
	
}

public class BoxTest {
	public static void main(String[] args) {
		Box box1 = new Box(100,100,100);
		System.out.println(box1);
		box1.setEmpty(1);
		System.out.println(box1);
		box1.setEmpty(0);
		System.out.println(box1);
	}
	
}
